<template>
  <div>
    <ConTitle :info="topTitle"/>
    <el-table :data="sensorList" style="width: 100%">
      <el-table-column type="index" width="50"></el-table-column>
      <el-table-column prop="eui" label="EUI"></el-table-column>
      <el-table-column prop="name" label="设备名称"></el-table-column>
      <el-table-column prop="nums" label="传感器通道"></el-table-column>
      <el-table-column prop="devGroup" label="设备群组"></el-table-column>
      <el-table-column prop="loop" label="上报周期(分钟)"></el-table-column>
      <el-table-column prop="mhz" label="频率(MHz)"></el-table-column>
      <el-table-column prop="" label="在线状态"></el-table-column>
      <el-table-column prop="uTime" label="绑定时间"></el-table-column>
      <el-table-column fixed="right" label="操作">
        <template slot-scope="scope">
          <el-button @click="handleClick(scope.row)" type="text" size="small">移动</el-button>
          <el-button type="text" size="small">数据</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import ConTitle from "@/components/ConTitle.vue";
import {$sensorList} from "@/api/index.js";
export default {
  name: "sensor",
  components:{
    ConTitle,
  },
  data(){
    return{
      topTitle:{
        type:"设备",
        text: "传感器列表",
        msg: "展示EUI、名称、状态、数据类型等设备信息，可根据EUI、群组、状态、绑定时间等条件筛选具体的传感器节点，并提供移动群组等功能。",
      },
      sensorList:[],
    };
  },
  created() {
    $sensorList().then((res)=>{
      console.log("传感器列表",res);
      this.sensorList = res.data.data;
      console.log(this.sensorList);
    })
  }
}
</script>

<style scoped>

</style>